package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.UserDto;
import com.itheima.entry.PageResult;
import com.itheima.entry.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

/**
 * @author jshstart
 * @creat 2020-11-23 9:42
 */
public interface UserService extends IService<User> {
    PageResult queryAllByPage(QueryPageBean queryPageBean);

    void deleteById(Long id);

    void updateByUserName(User user);

    List<User> findAllUser();



    Long[] findRoleByRoleId(Long id);

    boolean addRole(UserDto userDto);
}
